import {ApiSysCommonGetSiteInfo} from "@/request/apis";
import {ApiPubQrLinkGetBottleInfo, ApiPubQrLinkGetHeGeImage} from "@/request/apis/pub_qr_link";
import type {ReqBottleInfo, ReqPubQrLinkGetHeGeImage} from "@/request/dto/pub_qr_linq";
import {getRequest} from "@/request/main";
import type {RespData} from "@/request/dto/respData";
import {ApiPubRecordFillSearch} from "@/request/apis/pub_record_fill";
import {ApiPubRecordCheckSearch} from "@/request/apis/pub_record_check";

//获取站点信息
export const requestGetSiteInfo = () => {
    return getRequest().post<RespData>(ApiSysCommonGetSiteInfo, {})
}

// 根据二维码code获取合格证等信息
export const requestGetBottleInfo = (params: ReqBottleInfo) => {
    return getRequest().post<RespData>(ApiPubQrLinkGetBottleInfo, params)
}

//查询充装记录
export const requestSearchRecordFill = (params: any) => {
    return getRequest().post<RespData>(ApiPubRecordFillSearch, params)
}


//查询定检记录
export const requestSearchRecordCheck = (params: any) => {
    return getRequest().post<RespData>(ApiPubRecordCheckSearch, params)
}


// 获取合格证图片
export const requestGetHegeImage = (params: ReqPubQrLinkGetHeGeImage) => {
    return getRequest().post<RespData>(ApiPubQrLinkGetHeGeImage, params)
}